<template>
  <section class="hero">
    <div class="hero-content">
      <h1> 跨星际高铁教育平台</h1>
      <p class="subtitle">
        连接知识与未来，打造星际时代的教育新体验
      </p>
      <div class="cta-buttons">
        <router-link to="/login" class="primary-btn">
          <i class="fas fa-arrow-right" /> 开始探索
        </router-link>
        <router-link to="/about" class="secondary-btn">
          了解我们
        </router-link>
      </div>
    </div>
  </section>
</template>

<script>
export default {
  name: 'HeroSection'
}
</script>

<style scoped>
.hero {
  height: 100vh;
  /* 修改为100vh填满整个视口高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2072&q=80');
  background-size: cover;
  /* 修改为cover使背景图完全覆盖 */
  background-position: center;
  background-attachment: fixed;
  /* 添加视差滚动效果 */
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content h1 {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  /* 增大标题字号 */
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  /* 增大副标题字号 */
  color: white;
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  /* 增加按钮上方间距 */
}

.primary-btn {
  background: #6633FF;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  /* 添加这行去除下划线 */
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(102, 51, 255, 0.3);
}

.secondary-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans SC', sans-serif;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ddd;
  transform: translateY(-3px);
}
</style>